
/*In this Program x is defined at two places, once outside main() is called
global declaration and once inside main() */

#include<stdio.h>
#include<conio.h>

int x = 10;
void display();

void main()
{
	int x = 20;

	clrscr();
	//This printf() will use local variable.
	printf("\n\t%d", x);

	display();

	getch();
}

void display()
{
	printf("\n\t%d", x);
}